package com.hqully.smartfumehood.common.websocket;

import lombok.extern.slf4j.Slf4j;

import javax.websocket.EndpointConfig;

/**
 * AUTHOR: Li Dongshun
 * TIME: 2021 2021/2/1 15:06
 * DESCRIPTION: 自定义解码类
 */
@Slf4j
public class UserWebSocketDecoder implements javax.websocket.Decoder.Text<Object> {
    @Override
    public Object decode(String s) {
        log.info("serviceWebSocket接收到的数据：" + s);
        return null;
    }

    @Override
    public boolean willDecode(String s) {
        return true;
    }

    @Override
    public void init(EndpointConfig endpointConfig) {

    }

    @Override
    public void destroy() {

    }
}
